import 'package:json_annotation/json_annotation.dart';

part 'TreeItem.g.dart';

///  ***************************************************************************
///  知识分类的Item
///  ***************************************************************************

@JsonSerializable()
class TreeItem {

  int id;

  String name;

  TreeItem();

  factory TreeItem.fromJson(Map<String, dynamic> json) =>
      _$TreeItemFromJson(json);

  Map<String, dynamic> toJson() => _$TreeItemToJson(this);
}
